package com.ajavaer.framework;

import com.ajavaer.framework.core.orm.dao.BaseDAOFactoryBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.data.web.config.EnableSpringDataWebSupport;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication(scanBasePackages = {"com.ajavaer.framework.orm", "com.ajavaer.framework.web"})
@EnableWebMvc
@EnableScheduling
@EnableSpringDataWebSupport
@EnableTransactionManagement
@EnableJpaRepositories(basePackages = "com.ajavaer.framework", repositoryFactoryBeanClass = BaseDAOFactoryBean.class)
@EnableJpaAuditing
public class Server {

    public static void main(String[] args) {
        SpringApplication.run(Server.class, args);
    }

}
